<?php
/**
 * @Author: Administrator
 * @Date:   2014-08-11 23:10:22
 * @Last Modified by:   Administrator
 * @Last Modified time: 2014-08-25 21:34:22
 */

/**
* 显示公司
*/
class CompanyControl extends Control
{
	
	public function show()
	{
		header("Content-type:text/html;charset=utf-8");
		#取出基本信息
		$ComShowView = K('ComShowView');
		$where = array(
				'cbid' => Q('get.cbid',0,'intval')
				);
		$data = $ComShowView->get_one($where);
		$data['cityname'] = K('City')->city[$data['city_cityid']];

		#取出职位信息
		$posData = $ComShowView->get_all($where);
		$this->assign('data',$data);
		$this->assign('posData',$posData);
		// p($posData);
		$this->display();
	}
}